20 ON ERROR GOTO 380:OPEN "ANIMAL.DTA" FOR INPUT AS #1:INPUT #1,A$:N=VAL(A$):CLOSE #1
30 OPEN "ANIMAL.DTA" FOR INPUT AS #1:PRINT TAB(32);"ANIMAL":PRINT"CREATIVE COMPUTING, MORRISTOWN, NEW JERSEY":PRINT"Modified by Kurt Riegel, Arlington VA (703-522-5427)":PRINT:PRINT
40 PRINT"PLAY 'GUESS THE ANIMAL'":PRINT "THINK OF AN ANIMAL AND THE COMPUTER WILL TRY TO GUESS IT." :PRINT :FOR I=0 TO N-1 :INPUT #1, A$(I) :NEXT I :CLOSE #1 :M=VAL(A$(0))
50 '
60 ' MAIN CONTROL SECTION
70 PRINT:INPUT "ARE YOU THINKING OF AN ANIMAL";A$:IF A$="LIST" THEN GOSUB 330:GOTO 70
80 IF A$="NO" OR A$="N" THEN 390
90 IF LEFT$(A$,1)<>"Y" THEN 60
100 K=1
110 GOSUB 210:IF LEN(A$(K))=0 THEN 390
120 IF LEFT$(A$(K),2)="\Q" THEN 110
130 PRINT "IS IT A ";RIGHT$(A$(K),LEN(A$(K))-2); :INPUT A$ :A$=LEFT$(A$,1) :IF A$="Y" THEN PRINT "WHY NOT TRY ANOTHER ANIMAL?": GOTO 60
140 INPUT "THE ANIMAL YOU WERE THINKING OF WAS A ";V$ :PRINT "PLEASE TYPE IN A QUESTION THAT WOULD DISTINGUISH A ":PRINT V$;" FROM A ";RIGHT$(A$(K),LEN(A$(K))-2) :INPUT X$
150 PRINT "FOR A ";V$;" THE ANSWER WOULD BE "; :INPUT A$ :A$=LEFT$(A$,1):IF A$<>"Y" AND A$<>"N" THEN 150